package com.pdsu.alumni.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Acerola
 * @since 2022-01-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_slideshow")
@ApiModel(value = "Slideshow对象", description = "")
public class Slideshow implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "s_id", type = IdType.AUTO)
    private Integer sId;

    @ApiModelProperty(value = "图片链接")
    private String sImgurl;

    @ApiModelProperty(value = "图片名")
    private String sName;

    @ApiModelProperty(value = "关联新闻id")
    private Integer sMid;

    @ApiModelProperty(value = "关联校友id")
    private Integer sCuid;

    @ApiModelProperty(value = "关联捐赠id")
    private Integer sDid;

    @ApiModelProperty(value = "0表示首页轮播，1校友轮播，2新闻轮播，3捐赠轮播")
    private Integer sType;

    @ApiModelProperty(value = "1启用,0删除")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
